package com.graduationdesign.zengyan.graduationdesignapp.ui.contact;

import com.graduationdesign.zengyan.graduationdesignapp.dataLayer.model.Event;
import com.graduationdesign.zengyan.graduationdesignapp.dataLayer.model.Organization;
import com.graduationdesign.zengyan.graduationdesignapp.dataLayer.model.User;
import com.graduationdesign.zengyan.graduationdesignapp.ui.base.BaseContact;
import com.graduationdesign.zengyan.graduationdesignapp.ui.base.BaseLoadingView;

import java.util.List;

/**
 * Created by ZengYan on 2018/4/16.
 *
 * @desc :
 */
public interface OrgContact {

    interface Presenter extends BaseContact.BasePresenter {



        void loadAllOrgs(BaseLoadingView loadingView);

        void loadOrg(int id, BaseLoadingView loadingView);

        void loadPeopleInOrg(int id, BaseLoadingView loadingView);
    }


    interface ShowOrgInfo extends BaseContact.BaseView {
        void showOrg(Organization organization);
    }

    interface  ShowOrgPeoples extends BaseContact.BaseView {
        void showOrgPeoples(List<User> users);
    }

    interface ShowOrgEvent extends BaseContact.BaseView{
        void showOrgEvents(List<Event> list);
    }


}
